package com.test.qrcode.manage.service;

import com.test.qrcode.manage.model.entity.User;

import java.util.List;

/**
 * @program qrcode
 * @Title: UserService
 * @description: 对用户相关的业务逻辑的抽象(面向接口编程)
 * @author: XueXiao
 * @create: 2019-02-27 18:00:04
 */
public interface UserService {

    /** 
    * @Description: 用户注册逻辑 
    * @Author: XueXiao 
    * @Date: 2019/2/28 10:06
    */ 
    public void addUser(User user);

    /** 
    * @Description: 用户获取逻辑
    * @Author: XueXiao 
    * @Date: 2019/2/28 10:38
    */ 
    public Object getUser(int id);
    
    /** 
    * @Description: 查询单个用户 
    * @Author: XueXiao 
    * @Date: 2019/2/28 17:17
    */ 
    public User findUserById(long id);
    
    /** 
    * @Description: 更新用户信息 
    * @Author: XueXiao 
    * @Date: 2019/2/28 17:18
    */ 
    public void updateUser(User user);
    
    /** 
    * @Description: 删除用户 
    * @Author: XueXiao 
    * @Date: 2019/2/28 17:18
    */ 
    public void deleteUserById(long id);
    
    /** 
    * @Description: 查询所有用户 
    * @Author: XueXiao 
    * @Date: 2019/2/28 17:18
    */ 
    public List<User> findAllUsers();
    
    /** 
    * @Description: 判断用户是否存在
    * @Author: XueXiao 
    * @Date: 2019/2/28 17:23
    */ 
    public boolean isUserExist(User user);
}
